/**
 * MarioHUD
 * @extends UTHUD
 * @version 2010.11.30
 */

class MarioHUD extends UTHUD;

/**
 * DrawHud
 * @version 2010.11.30
 */


var int powerLoc;



function DrawHud()
{
	DrawHeadings();
	DrawStats();
	
//	if(MarioPawn(UTPawn).gotPowerUp){ PowerUp();}
}

function PowerUp(){
	`log(powerLoc);
	Canvas.SetPos(20,100 + powerLoc);
	Canvas.DrawText("Mario");
//	if(powerLoc > 300){ powerLoc = 0; MarioPawn(UTPawn).gotPowerUp = false;}
//	powerLoc ++;
}

function PostBeginPlay(){

	super.PostBeginPlay();
	HitEffect = none;
}
/**
 * DrawHeadings
 * @version 2010.11.30
 */
function DrawHeadings()
{
    Canvas.SetDrawColor(255,255,255,255);
    Canvas.Font = class'Engine'.static.GetMediumFont();
	Canvas.SetPos(20,20);
	Canvas.DrawText("Mario");
	Canvas.SetPos(600,20);
	Canvas.DrawText("WORLD");
	Canvas.SetPos(900,20);
	Canvas.DrawText("TIME");
	
}

/**
 * DrawStats
 * @version 2010.11.30
 */
function DrawStats()
{
	// Score
	Canvas.SetPos(20,40);
	Canvas.DrawText(MarioPawn(PawnOwner).score);

	// coin
	Canvas.SetPos(280,40);
	Canvas.SetDrawColor(199, 147, 22 ,255);
	Canvas.DrawText("0");

	// x
	Canvas.SetPos(290,40);
	Canvas.SetDrawColor(255,255,255,255);
	Canvas.DrawText("x");
	// coin amount
	Canvas.SetPos(300,40);
	Canvas.DrawText(MarioPawn(PawnOwner).coins);
	// world level
	Canvas.SetPos(600,40);
	Canvas.DrawText("1-1");
	// time left
	Canvas.SetPos(900,40);
	Canvas.DrawText(MarioPawn(PawnOwner).timeLeft);
}